from selenium import webdriver
from time import sleep

from selenium.webdriver import ActionChains


def test01():
    driver = webdriver.Chrome()
    driver.get('http://www.jpress.io/user/register')
    sleep(1)
    elem = driver.find_element_by_id('agree')
    action = ActionChains(driver)
    action.move_to_element(elem).click().perform()

    sleep(3)

test01()